package com.huadao.cart_ccs.experiment.paramsSetting;

//设备的参数配置
public final class ParamConsts {
    private ParamConsts() {}

    //设备固定参数
    //培养罐的容积，单位ml
    public static int cultureTankVolume=500;
    //记录培养罐当前液体体积
    public static int currentCultureTankLiquid=0;

    //------------设备参数默认值
//    public static int stirrerSpeed=100;
//    public static double temperature=37.0;
//    public static double CO2=5.0;
//    public static double O2=21.0;
    //误差
    public static final double temperature_error=0;
    public static final double CO2_error=0;
    public static final double O2_error=0;
    //异常值
    public static final double temperature_exception=100;
    public static final double CO2_exception=100;
    public static final double O2_exception=100;
    public static final double weight_exception=65280;

//    public static int fluidIntakePumpSpeed=80;
//    public static int circulatingPumpSpeed=80;
//    public static int wastePumpSpeed=80;
//    public static int reclaimPumpSpeed=80;
//    public static byte fluidIntakePumpDirection= PeristalticPumpBO.directionReverse;
//    public static byte circulatingPumpDirection= PeristalticPumpBO.directionReverse;
//    public static byte wastePumpDirection= PeristalticPumpBO.directionForward;
//    public static byte reclaimPumpDirection= PeristalticPumpBO.directionReverse;
//    public static int cultureTankSpeed=100;

    //极限值
    public static final int maxPumpSpeed=100;
    public static final int maxStirrerSpeed=250;
    public static final int maxCultureSpeed=100;
//    public static final int maxEnvironment=100;
    public static final int maxCO2=100;
    public static final int minCO2=0;
    public static final int maxO2=100;
    public static final int minO2=0;
    public static final int maxTemperature=100;
    public static final int minTemperature=0;

    //-------------业务默认值
    //预处理阶段注入的培养液体积
    public static int initCultureLiquid=100;
    //注入细胞后，冲刷的体积
    public static int scourAfterInjection=40;

    //s
    public static int temperatureReadFrequency=10;
    public static int CO2ReadFrequency=10;
    public static int O2ReadFrequency=10;
    public static int liquidLevelReadFrequency=2;
    public static int WeightReadFrequency=2;
    //ms
    public static int pumpReadFrequency=2000;

    public static final String deviceType="CCS";

    //想服务器发送环境信息的频率，一分钟三次
    public static int sendEnvironmentFrenquency=20;

}
